import request from '@/utils/request'

// 查询短视频列表
export function listCategory() {
  return request({
    url: '/sys/short/video/videoTagList',
    method: 'get'
  })
}

// 查询短视频详细
export function getCategory(id) {
  return request({
    url: '/video/category/' + id,
    method: 'get'
  })
}

// 新增短视频
export function addCategory(data) {
  return request({
    url: '/sys/short/video/category/insert',
    method: 'post',
    data: data
  })
}

// 修改短视频
export function updateCategory(data) {
  return request({
    url: '/sys/short/video/category/edit',
    method: 'put',
    data: data
  })
}

// 删除短视频
export function delCategory(ids) {
  return request({
    url: '/sys/short/video/category/remove',
    method: 'delete',
    data: ids
  })
}
//标签列表 分页查询
export function pageListCategory(data) {
  return request({
    url: '/sys/short/video/category/page',
    method:'post',
    data:data
  })
}
